<template>
  <div class="top-bar">
    <h1>新闻网站</h1>
    <nav>
      <a href="#">国内</a>
      <a href="#">娱乐</a>
      <a href="#">体育</a>
      <a href="#">关于我们</a>
    </nav>
  </div>
</template>

<style scoped>
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2c3e50;
  color: white;
  padding: 10px 20px;
}
nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
}
</style>